package org.lifei.exception;

//需要一个对象才不报错
public enum ResponseCode {
    RESPONSE_CODE_200(200,"操作成功!"),
    RESPONSE_CODE_400(400,"参数错误!"),
    RESPONSE_CODE_400001(400001,"两次密码不一致,请检查后重新提交!"),
    RESPONSE_CODE_400002(400002,"店铺已存在,请检查后重新提交!"),
    RESPONSE_CODE_400003(400003,"店铺已有该管理员"),
    RESPONSE_CODE_400004(400004,"店铺名违规"),
    RESPONSE_CODE_400005(400005,"该手机号已被注册，请直接登录"),
    RESPONSE_CODE_400006(400006,"该验证码已过期，请重新获取"),
    RESPONSE_CODE_400007(400007,"该验证码不一致,请检查后重新提交"),
    RESPONSE_CODE_400008(400008,"请求过于频繁，请稍后再试"),
    RESPONSE_CODE_400009(400009,"手机验证码有误，请重新输入"),
    RESPONSE_CODE_400010(400010,"用户名或密码错误"),
    RESPONSE_CODE_500(500,"网络异常!请稍后重试!");


    /**错误码**/
    private Integer code;
    /**错误的信息描述**/
    private String msg;


    ResponseCode(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    ResponseCode(String msg) {
        this.msg = msg;
    }

    ResponseCode() {
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}